﻿<%@ Page Title="Acms Site Set Up" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="NoSite.aspx.cs" Inherits="Site_SetUp_NoSite" %>

<asp:Content ID="Content1" ContentPlaceHolderID="phHead" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phActions" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="phSubMenu" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="phMain" Runat="Server">
    <h2><%#Page.Title %></h2>
    <p>There is currently no Acms web site set up to administrate.</p>
    <p>Please select a web site to administe or create a new one?</p>
    <fieldset>
        <legend>Select Existing Site</legend>
        <telerik:RadGrid ID="grid" DataSourceID="dsSite" AutoGenerateColumns="false" runat="server"  Skin="Telerik">
            <MasterTableView DataKeyNames="Id">
                <Columns>
                    <acms:RadIndexColumn />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" />
                    <telerik:GridBoundColumn DataField="Root" HeaderText="Root" SortExpression="Root" />
                    <telerik:GridButtonColumn ButtonType="LinkButton" ItemStyle-CssClass="save" CommandName="SelectSite" ConfirmText="Are you sure you want to select this site" Text="Select" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </fieldset>
    <fieldset>
        <legend>Create New Site</legend>
        <ul class="form">
            <li class="formItem">
                <asp:Label ID="Label1" CssClass="formLabel" Text="Site Name<em>*</em>" AssociatedControlID="txtSiteName" runat="server" />
                <span class="formInput">
                    <asp:TextBox ID="txtSiteName" runat="server" />
                    <asp:RequiredFieldValidator ID="valSiteName" ControlToValidate="txtSiteName" ErrorMessage="! Required" ValidationGroup="CreateNew" SetFocusOnError="true" Display="Dynamic" runat="server" />
                </span>
            </li>
            <li class="formItem">
                <asp:Label ID="Label2" CssClass="formLabel" Text="Site Root" AssociatedControlID="lblSiteRoot" runat="server" />
                <asp:Label ID="lblSiteRoot" CssClass="formInput" Text='<%#GetSiteRoot()%>' runat="server" />
            </li>
            <li class="formItem">
                <span class="formInput" runat="server">
                    <asp:Button ID="btnCreateNew" ValidationGroup="CreateNew" Text="Create New" runat="server" />
                </span>
            </li>
        </ul>
    </fieldset>
    <acms:SiteDataSource ID="dsSite" runat="server" />
</asp:Content>

